<template>
  <div class="app-container customer-div">
    <el-tabs v-model="activeName" @tab-click="changeTab">
      <el-tab-pane label="代加工列表" name="first">
          <oem-list ref="first"></oem-list>
      </el-tab-pane>
      <el-tab-pane label="付款申请" name="second">
        <oem-pay-list ref="second"></oem-pay-list>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import oemList from './components/oemList.vue'
import oemPayList from './components/oemPayList.vue'
export default {
  name: "index",
  components : {
    oemList:oemList,
    oemPayList:oemPayList
  },
  data(){
    return {
      activeName:'first',
    }
  },

  created() {

  },
  filters: {

  },
  methods: {
    changeTab(tab){
     this.$refs[tab.name].handleSearchList()
    },
  }
}
</script>

<style lang="scss">

</style>
